  /**
   * Generate time : 2016-05-24 10:40:56
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ch.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCHPlanValidateData 
 * table comment : 计划验收汇报 
 */
public class ZMCHPlanValidateData extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdForeignId = " ";		/* 外键*/
	private String fdValidateType = " ";		/* 验收类型*/
	private String fdValidateDate = " ";		/* 验收日期*/
	private String fdValidatePeople = " ";		/* 验收人*/
	private String fdValidateDepartmentId = " ";		/* 验收单位*/
	private String fdValidateCondition = " ";		/* 验收情况*/
	private String fdValidateContent = " ";		/* 验收内容*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdForeignId");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName("外键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdValidateType");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("验收类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdValidateDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("验收日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdValidatePeople");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("验收人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdValidateDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("验收单位");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdValidateCondition");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("验收情况");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdValidateContent");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("验收内容");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCHPlanValidateData() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdForeignId - 外键
	 * @return the fdForeignId
	 */
	public String getFdForeignId() {
		return this.fdForeignId;
	}
	
	/**
	 * set the fdForeignId - 外键
	 */
	public void setFdForeignId(String fdForeignId) {
		this.fdForeignId = fdForeignId;
	}
	/**
	 * get the fdValidateType - 验收类型
	 * @return the fdValidateType
	 */
	public String getFdValidateType() {
		return this.fdValidateType;
	}
	
	/**
	 * set the fdValidateType - 验收类型
	 */
	public void setFdValidateType(String fdValidateType) {
		this.fdValidateType = fdValidateType;
	}
	/**
	 * get the fdValidateDate - 验收日期
	 * @return the fdValidateDate
	 */
	public String getFdValidateDate() {
		return this.fdValidateDate;
	}
	
	/**
	 * set the fdValidateDate - 验收日期
	 */
	public void setFdValidateDate(String fdValidateDate) {
		this.fdValidateDate = fdValidateDate;
	}
	/**
	 * get the fdValidatePeople - 验收人
	 * @return the fdValidatePeople
	 */
	public String getFdValidatePeople() {
		return this.fdValidatePeople;
	}
	
	/**
	 * set the fdValidatePeople - 验收人
	 */
	public void setFdValidatePeople(String fdValidatePeople) {
		this.fdValidatePeople = fdValidatePeople;
	}
	/**
	 * get the fdValidateDepartmentId - 验收单位
	 * @return the fdValidateDepartmentId
	 */
	public String getFdValidateDepartmentId() {
		return this.fdValidateDepartmentId;
	}
	
	/**
	 * set the fdValidateDepartmentId - 验收单位
	 */
	public void setFdValidateDepartmentId(String fdValidateDepartmentId) {
		this.fdValidateDepartmentId = fdValidateDepartmentId;
	}
	/**
	 * get the fdValidateCondition - 验收情况
	 * @return the fdValidateCondition
	 */
	public String getFdValidateCondition() {
		return this.fdValidateCondition;
	}
	
	/**
	 * set the fdValidateCondition - 验收情况
	 */
	public void setFdValidateCondition(String fdValidateCondition) {
		this.fdValidateCondition = fdValidateCondition;
	}
	/**
	 * get the fdValidateContent - 验收内容
	 * @return the fdValidateContent
	 */
	public String getFdValidateContent() {
		return this.fdValidateContent;
	}
	
	/**
	 * set the fdValidateContent - 验收内容
	 */
	public void setFdValidateContent(String fdValidateContent) {
		this.fdValidateContent = fdValidateContent;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdForeignId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdForeignId")), fdForeignId));
		setFdValidateType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdValidateType")), fdValidateType));
		setFdValidateDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdValidateDate")), fdValidateDate));
		setFdValidatePeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdValidatePeople")), fdValidatePeople));
		setFdValidateDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdValidateDepartmentId")), fdValidateDepartmentId));
		setFdValidateCondition(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdValidateCondition")), fdValidateCondition));
		setFdValidateContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdValidateContent")), fdValidateContent));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdForeignId",StringUtils.toString(fdForeignId, eiMetadata.getMeta("fdForeignId")));	
			map.put("fdValidateType",StringUtils.toString(fdValidateType, eiMetadata.getMeta("fdValidateType")));	
			map.put("fdValidateDate",StringUtils.toString(fdValidateDate, eiMetadata.getMeta("fdValidateDate")));	
			map.put("fdValidatePeople",StringUtils.toString(fdValidatePeople, eiMetadata.getMeta("fdValidatePeople")));	
			map.put("fdValidateDepartmentId",StringUtils.toString(fdValidateDepartmentId, eiMetadata.getMeta("fdValidateDepartmentId")));	
			map.put("fdValidateCondition",StringUtils.toString(fdValidateCondition, eiMetadata.getMeta("fdValidateCondition")));	
			map.put("fdValidateContent",StringUtils.toString(fdValidateContent, eiMetadata.getMeta("fdValidateContent")));	
			
		return map;
	
	}
}